package com.mwm.loyal.bean;

import java.util.ArrayList;
import java.util.List;

public class ResultBean<T, A> extends PatternBean<T, A> {
    private String code;
    private String message;
    private T obj;
    private List<A> list=new ArrayList<>();

    public ResultBean() {
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public T getObj() {
        return obj;
    }

    public void setObj(T obj) {
        this.obj = obj;
    }

    public List<A> getList() {
        return list;
    }

    public void setList(List<A> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "ResultBean{" +
                "code='" + code + '\'' +
                ", message='" + message + '\'' +
                ", obj=" + obj +
                ", list=" + list +
                '}';
    }
}
